<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="com.wlcorp.forcazamis.sys.util.AppConstant" %>
<%@ page import="com.wlcorp.forcazamis.domain.storagein.StorageIn" %>

<%
	StorageIn storageIn = (StorageIn)request.getAttribute("storageIn");
	
%>
<html>
<head>
	<title>样品入库单信息更新</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Cache-Control" content="no-cache"><meta http-equiv="Expires" content="0">
	<link href="${pageContext.request.contextPath}/css/css.css" rel=stylesheet>
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/button_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/form_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/table_css.css" type="text/css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/pagetitle_css.css" type="text/css">
	<script language="javascript" src="${pageContext.request.contextPath}/script/validator.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/script/calendartime.js"></script>
	<script language="javascript" src="${pageContext.request.contextPath}/script/ajax.js"></script>
	<script type="text/javascript">
		function doSave(){
			document.forms["storageInForm"].submit();
		}
		function goback(){
			window.location = "${pageContext.request.contextPath}/storagein/storageInManager.do?method=storageInManager";
		}
		function storageDetail(storageInId){
			window.location = "${pageContext.request.contextPath}/storagein/storageInManager.do?method=getStorageInDetail&storageInId=" + storageInId;
		}
	</script>
</head>
<body>
<form name="storageInForm" method="POST" action="${pageContext.request.contextPath}/storagein/storageInManager.do?method=modifyStorageIn">
<input type="hidden" name="storageInId" value="${storageIn.storageInId}"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="30">
	<tr> 
	  <td width="22" class="page_titlebar_head">&nbsp;</td>
	  <td class="page_titlebar_bg" width="981">样品入库单编辑</td>
	</tr>
</table>
<center>
<%
	if(null == storageIn.getState() || AppConstant.BILL_STATE_SUBMITED == storageIn.getState()){
%>
<table width="750" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" class="table_bgcolor">
      <tr> 
        <td align="right" valign="middle"> 
          <input class=button_save type=button name=save value="      保存" style="font-size:9pt" onClick="javascript:doSave()" id="btn_submit">
          <input class=button_reset name=qqq type=reset value="      恢复" style="font-size:9pt" id="btn_reset">
          <input type=button name=rst class=button_recovery value="     返回" style="font-size:9pt" onClick="javascript:history.go(-1);" id="btn_recovery">
        </td>
      </tr>
</table>
<%}%>
<table width="750" class="InputFrameMain" cellspacing="0" cellpadding="0" border="0" height="100">
  <tr> 
    <td colspan="4" class="table_unfold_titlebar_small_bg">&nbsp;&nbsp;<b>样品入库单</b></td>
  </tr>
  <tr class="InputFrameLine">
        <td class="table_label" width="20%">仓库名称</td>
		<td width="80%">&nbsp;<select name="depotId" style="width:100px">
				<option value="">样品库</option>
			</select>
		</td>
  </tr>
  <tr class="InputFrameLine">
        <td class="table_label" width="20%" id="submiterId_TEXT">入库人</td>
		<td width="80%">&nbsp;<input class="input" type="text" name="submiterId" value="${storageIn.submiter.staffName}" style="width:150px" disabled/>
		</td>
  </tr>
  <tr class="InputFrameLine">
        <td class="table_label" width="20%" id="inStorageDate_TEXT">入库时间</td>
		<td width="80%">&nbsp;<input class="input" type="text" name="inStorageDate" value="${storageIn.inStorageDate}" style="width:150px" disabled/>
		</td>
  </tr>
  <tr class="InputFrameLine">
        <td class="table_label" width="20%" id="type_TEXT">入库类型</td>
		<td width="80%" colspan="3">&nbsp;<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_DIRECT_BUY%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_DIRECT_BUY == storageIn.getType().intValue()){out.print("checked");}%> checked/>直接买样&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_FROM_CUSTOMER%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_FROM_CUSTOMER == storageIn.getType().intValue()){out.print("checked");}%>/>客户来样&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_FROM_FACTORY%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_FROM_FACTORY == storageIn.getType().intValue()){out.print("checked");}%>/>工厂来样&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_OUT_GOODS%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_OUT_GOODS == storageIn.getType().intValue()){out.print("checked");}%>/>出货样&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_DRAW_DESIGN%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_DRAW_DESIGN == storageIn.getType().intValue()){out.print("checked");}%>/>打样单&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_EXHIBIT%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_EXHIBIT == storageIn.getType().intValue()){out.print("checked");}%>/>参展&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_CHECK%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_CHECK == storageIn.getType().intValue()){out.print("checked");}%>/>盘点&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_FACTORY_T%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_FACTORY_T == storageIn.getType().intValue()){out.print("checked");}%>/>工厂淘样&nbsp;
			<input type="radio" name="type" value="<%=AppConstant.STORAGE_IN_TYPE_OTHER%>" <%if(null != storageIn.getType() && AppConstant.STORAGE_IN_TYPE_OTHER == storageIn.getType().intValue()){out.print("checked");}%>/>其他&nbsp;
		</td>
  </tr>
  <tr class="InputFrameLine">
        <td class="table_label" width="20%" id="memo_TEXT">备注</td>
		<td width="80%" colspan="3">&nbsp;<textarea id="memo" name="memo" cols="40" rows="5" style="width:400px">${storageIn.memo}</textarea>
		</td>
  </tr>
  <tr class="InputFrameLine">
  	<td width="100%" colspan="4" align="center">
  		<input type="button" class="button_common_5" name="storageDetailButton" value="入库单样品细节" onclick="javascript:storageDetail('${storageIn.storageInId}')" <%if(null == storageIn.getStorageInId()){out.print("disabled");}%>/>
  	</td>
  </tr>
</table>
</center>
</form>
${message}
</body>
</html>
